<template>
  <div>
    <type-nav></type-nav>
    <list-container></list-container>
    <today-recommend></today-recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for="item in floorList" :key="item.id" :item="item"></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
import ListContainer from "./listContainer";
import TodayRecommend from "./todayRecommend/index.vue";
import Rank from "./rank/index.vue";
import Like from "./like/index.vue";
import Floor from "./floor/index.vue";
import Brand from "./brand/index.vue";
import { mapState } from "vuex";
export default {
  name: "Home",
  components: { ListContainer, TodayRecommend, Rank, Like, Floor, Brand },
  mounted() {
    this.$store.dispatch("home/getfloor");
  },
  computed: {
    ...mapState({
      floorList: (state) => state.home.floorList,
    }),
  },
};
</script>

<style lang="less" scoped></style>
